<?php

use yii\db\Migration;

/**
 * Class m171227_031857_alert_project_table
 */
class m171227_031857_alert_project_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->alterColumn('project', 'guarantor_status', 'string(255) not null comment "保证人经营状况，破产、2存续、3吊销、4注销、5在营、6其它" ');
        $this->alterColumn('project', 'mortgage_type', 'string(255) not null comment "（保证、混合类）抵押物类型" ');

    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m171227_031857_alert_project_table cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171227_031857_alert_project_table cannot be reverted.\n";

        return false;
    }
    */
}
